package com.lzy.cloud.goods.service.GoodsServiceImpl;

import com.lzy.cloud.goods.dtos.CarImageDto;
import com.lzy.cloud.goods.dtos.CarVideoDto;
import com.lzy.cloud.goods.entity.CarVideo;
import com.lzy.cloud.goods.mapper.CarVideoMapperExt;
import com.lzy.cloud.goods.service.CarVideoService;
import com.lzy.framework.core.utils.DozerUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 房车视频
 *
 * @author lc
 * @version 2018/8/22
 */
@Service
public class CarVideoServiceImpl implements CarVideoService {

    @Autowired
    private CarVideoMapperExt carVideoMapperExt;

    @Override
    public Boolean add(CarVideoDto dto) {
        CarVideo carVideo = DozerUtils.map(dto, CarVideo.class);
        return carVideoMapperExt.insertSelective(carVideo)>0;
}

    @Override
    public Boolean delById(Long id) {
        return null;
    }

    @Override
    public Boolean delByKey(CarVideoDto dto) {
        return null;
    }

    @Override
    public Boolean update(CarVideoDto dto) {
        return null;
    }

    @Override
    public List<CarVideoDto> selectList(CarVideoDto dto) {
        return carVideoMapperExt.selectList(dto);
    }

    @Override
    public CarVideoDto selectById(Long id) {
        return null;
    }

    @Override
    public Boolean delByKeyTrue(CarVideoDto ciDto) {
        return carVideoMapperExt.delByKeyTrue(ciDto)>0;
    }
}
